/*
 * This file is part of Formin Media Library
 * 
 */
package formin.mediaLibrary.gui.components;

import javax.swing.BoxLayout;
import javax.swing.JPanel;


/**
 * 
 * 
 * @author formin
 *
 */
public class TopPanel extends JPanel {
	//==========================================================================
    // Static attributes
    //==========================================================================
	
	//==========================================================================
    // Attributes
    //==========================================================================
	
	/*
	 * panel used to choose between the media types - tv shows, movies, music, pictures
	 */
	private final MediaTypePanel mediaTypePanel;
	private final BrowserPanel browserPanel;
	
	/*
	 * reference to the main panel
	 */
	private MainPanel mainPanel;
    //==========================================================================
    // Constructors
    //==========================================================================

	public TopPanel (final MainPanel main){
		mainPanel = main;
		
		this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
		
		mediaTypePanel = new MediaTypePanel(mainPanel);
		browserPanel = new BrowserPanel();
		
		add(mediaTypePanel);
		add(browserPanel);
	}
    //==========================================================================
    // Getters
    //==========================================================================

    //==========================================================================
    // Setters
    //==========================================================================

    //==========================================================================
    // Inherited methods
    //==========================================================================

    //==========================================================================
    // Static methods
    //==========================================================================

}
